module.exports = app => {
    const express = require('express');
    const router = express.Router({
        mergeParams: true,//接受父级路由参数
    })

    app.use('/api',router)

    router.get('/test',(req,res) => {
        res.send("OK")
    })
5
}